Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Add CI for e2e #208

Merged

Conversation

yizheliu-amazon
Copy link
Contributor

Description of changes:
Set up CI for e2e.

Basic workflow:

  1. Start ES docker with AD installed
  2. Check out Kibana and set up node to bootstrap
  3. Start local kibana and run E2E test against it

Latest E2E run history is here: #203

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Set up CI for e2e
@ohltyler ohltyler linked an issue Jun 9, 2020 that may be closed by this pull request
Copy link
Contributor

@ohltyler ohltyler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

then
echo "FROM opendistroforelasticsearch/opendistroforelasticsearch:$version" >> Dockerfile
## The ESRestTest Client uses http by default.
## Need to disable the security plugin to call the rest api over http.
Copy link
Contributor

@ylwu-amzn ylwu-amzn Jun 9, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the change, very helpful. The workflow looks good.

Is it possible to test with security plugin enabled? No need to answer or change this PR if no clear answer now. We can create issue and research later.

Asking this as start detector REST API will start AD job. We'd better test with security plugin enabled to know if AD job can run successfully, generate AD result and show the result correctly on Kibana.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's a good point. I created issue: #209

- name: Checkout Kibana
uses: actions/checkout@v2
with:
repository: elastic/kibana
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's hold for some time for response of using elastic/kibana or kibana oss. Similar to this one #207

@ohltyler ohltyler added the test fix/enhance testing label Jun 16, 2020
@ohltyler
Copy link
Contributor

How about we change this to just run on pushes to master for now so we can merge and start using cypress?

@ylwu-amzn
Copy link
Contributor

How about we change this to just run on pushes to master for now so we can merge and start using cypress?

Totally agree. No clear reply yet. We don't need to wait for the decision. Can add PR triggered test workflow later.

@yizheliu-amazon
Copy link
Contributor Author

How about we change this to just run on pushes to master for now so we can merge and start using cypress?

Sure. I will use private repo and change to only run it on pushes to master.

@yizheliu-amazon
Copy link
Contributor Author

Will verify the change after this is merged

Copy link
Contributor

@ohltyler ohltyler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks for adding.

Copy link
Contributor

@ylwu-amzn ylwu-amzn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks for the change!

@yizheliu-amazon yizheliu-amazon merged commit beb8f89 into opendistro-for-elasticsearch:master Jun 23, 2020
@yizheliu-amazon yizheliu-amazon deleted the e2e-ci branch June 23, 2020 16:28
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
test fix/enhance testing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add CI workflow
3 participants